
<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Hugin lensdb - PanoTools.org Wiki</title>




<style media="screen" type="text/css" title="Screen style sheet"> @import url(manual.css); </style>

<meta name="generator" content="MediaWiki 1.35.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>





<!--[if lt IE 9]><![endif]-->
</head>
<body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Hugin_lensdb rootpage-Hugin_lensdb skin-vector action-view skin-vector-legacy">


<div id="content" class="mw-body" role="main">
	<a id="top"></a>
	
	
	<h1 id="firstHeading" class="firstHeading" lang="en">Hugin lensdb</h1>
	<div id="bodyContent" class="mw-body-content">
		<div id="siteSub" class="noprint">From PanoTools.org Wiki</div>
		
		
		
		
		
		
		<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><p><b>hugin_lensdb</b> is a maintenance tool for Hugins camera and lens database.
</p><p>The database is automatically filled when stitching a project file from Hugin. Entries can also manually added from <a href="Hugin.html" title="Hugin">Hugin</a> and <a href="Calibrate_lens_gui.html" title="Calibrate lens gui">calibrate_lens_gui</a>.
</p><p>The information are used when adding image files to a project. Distortion and vignetting data can also manually loaded inside Hugin.
</p>
<h2><a name="Usage"><span class="mw-headline">Usage</span></a></h2>
<pre> hugin_lensdb [--recursive] --populate BASEPATH
</pre>
<p>Fills the database with information from all pto files in BASEPATH. With the switch <tt>--recursive</tt> the search goes also into all subfolders.
</p>
<pre> hugin_lensdb --compress
</pre>
<p>Compresses the database by replacing all single entries with the average values.
</p>
<h2><a name="Database_maintenance"><span class="mw-headline">Database maintenance</span></a></h2>
<p><b>hugin_lensdb</b> provides also some functions to maintain the database. Use these functions with responsibility.
</p>
<pre> hugin_lensdb --export-database=FILENAME
</pre>
<p>Exports all entries of the database into the given (text) file.
</p>
<pre> hugin_lensdb --import-from-file=FILENAME
</pre>
<p>Import the entries of the given (text) file into the existing database.
</p>
<pre> hugin_lensdb --remove-lens=LENS
</pre>
<p>Removes all entries for the given lens from the database. For cameras with fixed lens use <tt>MAKER|MODEL</tt> as search string.
</p>
<pre> hugin_lensdb --remove-camera=MAKER|MODEL
</pre>
<p>Removes all entries for the given camera from the database.
</p>

<!--
Transclusion expansion time report (%,ms,calls,template)
100.00%    0.000      1 -total
-->


</div></div><div class="printfooter">Retrieved from "<a dir="ltr" href="https://wiki.panotools.org/index.php?title=Hugin_lensdb&amp;oldid=15941">https://wiki.panotools.org/index.php?title=Hugin_lensdb&amp;oldid=15941</a>"</div>
		</div></div></body></html>